/*
 * screen-fade.h
 *
 * Routines to fade the screen for logout dialogs
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 *
 * Authors:
 *		Calvin Gaisford <cgaisford@novell.com>
 *
 * Authors for code taken from gnome-panel-logout:
 *		Vincent Untz <vuntz@gnome.org>
 *
 * Authors for code taken from gnome-session-logout:
 *		Owen Taylor <otaylor@redhat.com>
 */

#ifndef __SCREEN_FADE__
#define __SCREEN_FADE__

#include <glib.h>
#include <gtk/gtk.h>
#include <gtk/gtkinvisible.h>
#include <gdk/gdkx.h>

G_BEGIN_DECLS

typedef struct
{
  GtkWindow	   *fader;
  GdkScreen    *screen;
  int           monitor;
  GdkRectangle  area;
  int           rowstride;
  GdkWindow    *root_window;
  GdkWindow    *draw_window;
  GdkPixmap    *draw_pixmap;
  GdkPixbuf    *start_pb, *frame;
  guchar       *start_p, *frame_p;
  GTimeVal      start_time;
  GdkGC        *gc;
  int           callback_id;
} FadeoutData;

void ssui_punch_hole_fadeout_windows (GtkWindow *dialog);
void ssui_fadeout_screen (GdkScreen *screen, int monitor);
void ssui_hide_fadeout_windows (void);

G_END_DECLS

#endif /* __SCREEN_FADE__ */
